package clue.engine;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

import clue.cards.Card;
import clue.enums.Room;
import clue.players.Player;

/**
 *
 * @author Shawn
 */
public class GameState {
	private HashMap<Player, Set<Card>> playerHands;
	private HashMap<Player, Integer> playerToID;
	public List<Integer> playerIDs;
	public HashMap<Integer, Room> IDToLocation;
	
	public GameState(HashMap<Player, Set<Card>> hands,
					 HashMap<Player, Integer> playerToID,
					 List<Integer> ids, 
					 HashMap<Integer, Room> IDToLocation) {
		this.playerToID = playerToID;
		playerHands = hands;
		playerIDs = ids;
		this.IDToLocation = IDToLocation;
	}
	
	public Set<Card> getOwnHand(Player p) {
		if (playerHands.containsKey(p))
			return playerHands.get(p);
		return null;
	}
	
	public Integer getOwnID(Player p) {
		if (playerToID.containsKey(p))
			return playerToID.get(p);
		return null;
	}
}
